using System.Web;

namespace SpiderMaster.AspNet.TradingSystem
{
    internal partial class LinkLoader
    {
        internal partial class Cache
        {
            #region Common Header Image

            internal static string CommonHeaderImage()
            {
                if (HttpContext.Current.Cache["CommonHeaderImage"] == null)
                    return Load.CommonHeaderImage();
                else
                    return HttpContext.Current.Cache["CommonHeaderImage"].ToString();
            }

            #endregion

            #region To Be Specified Terms And Conditions

            internal static string TermsAndConditoinsLink()
            {
                if (HttpContext.Current.Cache["TermsAndConditionsLink"] == null)
                {
                    return Load.TermsAndConditionsLink();
                }
                else
                    return HttpContext.Current.Cache["TermsAndConditionsLink"].ToString();
            }

            #endregion

            #region To Be Specified Support Link

            internal static string TradingCenterSupportLink()
            {
                if (HttpContext.Current.Cache["TradingCenterSupportLink"] == null)
                {
                    return Load.TradingCenterSupportLink();
                }
                else
                    return HttpContext.Current.Cache["TradingCenterSupportLink"].ToString();
            }

            #endregion

            #region Spider Master Support Link

            internal static string SpiderMasterSupportLink()
            {
                if (HttpContext.Current.Cache["SpiderMasterSupportLink"] == null)
                {
                    return Load.SpiderMasterSupportLink();
                }
                else
                    return HttpContext.Current.Cache["SpiderMasterSupportLink"].ToString();
            }

            #endregion

            #region Email Activation Link

            internal static string EmailActivationLink()
            {
                if (HttpContext.Current.Cache["EmailActivationLink"] == null)
                {
                    return Load.EmailActivationLink();
                }
                else
                    return HttpContext.Current.Cache["EmailActivationLink"].ToString();
            }

            #endregion

            #region Log In Link

            internal static string LogInLink()
            {
                if (HttpContext.Current.Cache["LogInLink"] == null)
                    return Load.LogInLink();
                else
                    return HttpContext.Current.Cache["LogInLink"].ToString();
            }

            #endregion

            #region Login Header Image Link

            internal static string LoginHeaderImageLink()
            {
                if (HttpContext.Current.Cache["LoginHeaderImageLink"] == null)
                    return Load.LoginHeaderImageLink();
                else
                    return HttpContext.Current.Cache["LoginHeaderImageLink"].ToString();
            }

            #endregion
        }
    }
}